@model TimeSpan?

@{
    var value = ViewData.TemplateInfo.FormattedModelValue.ToString();
}

<div class="form-group">
    @Html.LabelFor(m => m, new { @class = "col-sm-2 control-label" })
    <div class="col-sm-3 col-md-2">
        <div class="input-group">
            <span class="input-group-addon"><span class="glyphicon glyphicon-time"></span></span>
            @Html.TextBoxFor(m => m, new { @value = value, @class = "form-control timepicker" })
        </div>
        @Html.ValidationMessageFor(m => m, null)
    </div>
</div>
